package com.bdqn.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

/**
 * @author 鐢ㄦ埛鍚�
 * @version 1.0
 * @description TODO
 * @date 2023/8/21 14:30
 */
@RestController
public class HelloController {
//    @Autowired
//    private DataSourceProperties2 dataSourceProperties;

    @Autowired
    private DataSource dataSource;

    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println(dataSource.getClass());
        return "hello!";
    }
}
